/*
 */

package com.railway.system.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.*;
import org.apache.commons.lang.StringUtils;

import com.railway.common.base.*;
import com.railway.common.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.railway.system.dao.*;
import com.railway.system.model.*;
import com.railway.system.service.*;
import com.railway.system.vo.query.*;

/**
 * @author  jiangcheng
 * @version 1.0
 * @since 1.0
 */


@Service("sysDeptManager")
@Transactional
public class SysDeptManagerImpl extends BaseManager<SysDept,java.lang.String> implements ISysDeptManager{

	private ISysDeptDao sysDeptDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setSysDeptDao(ISysDeptDao dao) {
		this.sysDeptDao = dao;
	}
	public EntityDao getEntityDao() {
		return (EntityDao)this.sysDeptDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(SysDeptQuery query) {
		return sysDeptDao.findPage(query);
	}
	@Transactional(readOnly=true)
	public SysDept getById(java.lang.String id){
		System.out.print(sysDeptDao.getById(id));
		return sysDeptDao.getById(id);
	}
	@Transactional
	public void removeById(java.lang.String id){
		super.removeById(id);
	}
	
	/** 插入数据 */
	@Transactional
	public void save(SysDept entity){
		super.save(entity);
	}
	
	/** 更新数据 */
	@Transactional
	public void update(SysDept entity){
		super.update(entity);
	}
	@Transactional(readOnly=true)
	public boolean isUnique(SysDept entity, String uniquePropertyNames){
		return super.isUnique( entity, uniquePropertyNames);
	}
	@Transactional(readOnly=true)
	public List<SysDept> findAll(){
		return sysDeptDao.findAll();
	}
	@Transactional
	public void saveOrUpdate(SysDept entity) {
		super.saveOrUpdate(entity);
	}

}
